//
//  FindTableViewCell.m
//  Zaker
//
//  Created by dllo on 16/3/12.
//  Copyright © 2016年 dllo. All rights reserved.
//

#import "FindTableViewCell.h"

@implementation FindTableViewCell

-(instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        self.img = [[UIImageView alloc]init];
        //_img.backgroundColor = [UIColor redColor];
        [self.contentView addSubview:_img];
        
        self.titlelable = [[BaseLabel alloc]init];
        // _titlelable.backgroundColor = [UIColor yellowColor];
        [self.contentView addSubview:_titlelable];
        
        self.stitleLable = [[BaseLabel alloc]init];
        //  _stitleLable.backgroundColor = [UIColor blueColor];
        [self.contentView addSubview:_stitleLable];
        
        self.attentBtn = [UIButton buttonWithType:UIButtonTypeSystem];
        [self.contentView addSubview:_attentBtn];
    }
    return self;
}
-(void)layoutSubviews
{
    [super layoutSubviews];
    self.img.frame = CGRectMake(10 * WIDTH, 10 * HEIGHT, 80 * WIDTH, 80 * HEIGHT);
    self.titlelable.frame = CGRectMake(90 * WIDTH, 20 * HEIGHT, 300 * WIDTH, 30 * HEIGHT);
    self.stitleLable.frame = CGRectMake(90 * WIDTH, 45 * HEIGHT, 250 * WIDTH, 30 * HEIGHT);
    _stitleLable.numberOfLines = 0;
    _stitleLable.textColor = [UIColor grayColor];
    _stitleLable.font = [UIFont systemFontOfSize:13];
    self.attentBtn.frame = CGRectMake(self.contentView.frame.size.width - 30, _titlelable.frame.origin.y + _titlelable.frame.size.height / 2, 20, 20);
    [_attentBtn setBackgroundImage:[UIImage imageNamed:@"iconfont-duihao-3"] forState:UIControlStateNormal];
}

/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/

@end
